# $Id: PKGBUILD 61375 2011-12-29 09:59:32Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jick Nan <jick.nan@gmail.com>

pkgname=uucp
pkgver=1.07
pkgrel=3
pkgdesc="Taylor UUCP is a free implementation of UUCP and is the standard UUCP used on the GNU system"
arch=(i686 x86_64)
url="http://www.gnu.org/software/uucp/uucp.html"
license=('GPL')
makedepends=('wget' 'sed' 'grep')
backup=('etc/uucp/config'
	'etc/uucp/port'
	'etc/uucp/sys')
source=(http://ftp.gnu.org/gnu/uucp/${pkgname}-${pkgver}.tar.gz)
md5sums=('64c54d43787339a7cced48390eb3e1d0')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr --mandir=/usr/share/man --with-newconfigdir=/etc/uucp
  make
  make DESTDIR="${pkgdir}" install

  install -D -m644 sample/config ${pkgdir}/etc/uucp/config
  install -D -m644 sample/sys1 ${pkgdir}/etc/uucp/sys
  install -D -m644 sample/port ${pkgdir}/etc/uucp/port
  mv ${pkgdir}/usr/info ${pkgdir}/usr/share/
}

